package com.buba.system.service.Impl;

import com.buba.system.dao.JobMapper;
import com.buba.system.pojo.Job;
import com.buba.system.service.JobService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@DubboService
public class JobServiceImpl implements JobService {
    private JobMapper jobMapper;
    @Override
    public List<Job> selJob(String employeeId) {
        return jobMapper.selJob(employeeId);
    }

    @Override
    public List<Job> selJobByEmployeeId(String employeeId) {
        return jobMapper.selJobByEmployeeId(employeeId);
    }

    @Override
    public List<Job> selAllJob() {
        return jobMapper.selAllJob();
    }



    @Override
    public Integer addJobByEmployeeId(Map<String, Object> map) {
        return jobMapper.addJobByEmployeeId(map);
    }





    @Override
    public Integer addJob(Job job) {
        return jobMapper.addJob(job);
    }

    @Override
    public Integer delJobTitle(List<String> list) {
        return jobMapper.delJobTitle(list);
    }

    @Override
    public Integer delEmpJobId(List<String> list) {
        return jobMapper.delEmpJobId(list);
    }

    @Override
    public Integer delJobByEmployeeId(List<String> list) {
        return jobMapper.delJobByEmployeeId(list);
    }


    @Autowired
    public void setJobMapper(JobMapper jobMapper) {
        this.jobMapper = jobMapper;
    }
}
